<html>
<head><meta charset="utf-8"><title>Compile only one subcrate · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compile.20only.20one.20subcrate.html">Compile only one subcrate</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="178858457"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Compile%20only%20one%20subcrate/near/178858457" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Paul Faria <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compile.20only.20one.20subcrate.html#178858457">(Oct 23 2019 at 14:26)</a>:</h4>
<p>I was under the impression that running something like <code>RUST_BACKTRACE=1 ./x.py build --stage=0 src/librustc_codegen_ssa </code> would only try to compile the <code>librustc_codegen_ssa</code> crate, but it's also compiling <code>librustc_mir</code>. Is there a way I can tell the build system to not compile <code>src/librustc_mir</code> yet? It produces a ton of errors that I'm going to address later, and I'd just like to wrap up the former crate first. I current have nearly 200 errors, so it makes it hard to find the ones specific to <code>librustc_codegen_ssa</code>.</p>



<a name="178882352"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Compile%20only%20one%20subcrate/near/178882352" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compile.20only.20one.20subcrate.html#178882352">(Oct 23 2019 at 18:30)</a>:</h4>
<p>you can't, no, not today</p>



<a name="178882360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Compile%20only%20one%20subcrate/near/178882360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compile.20only.20one.20subcrate.html#178882360">(Oct 23 2019 at 18:30)</a>:</h4>
<p>in anycase I suspect ssa depends on mir?</p>



<a name="178918038"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Compile%20only%20one%20subcrate/near/178918038" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Paul Faria <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Compile.20only.20one.20subcrate.html#178918038">(Oct 24 2019 at 03:40)</a>:</h4>
<p>It depends on librustc/mir, but not librustc_mir. No worries though. Finally got through most of those today <span aria-label="slight smile" class="emoji emoji-1f642" role="img" title="slight smile">:slight_smile:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>